<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=\, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let a=1;
        // 显示1
       console.log( a);
        //显示变量类型
       console.log(typeof a);
       a='str';
       console.log(a);
       console.log(typeof a);
        a=true;    
        console.log(a);
        console.log(typeof a);
        a=null;
        console.log(a);
        console.log(typeof a);
    </script>
</body>
</html>